package com.hdc.hdc.warehouseManage.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.transaction.annotation.Transactional;

import com.hdc.hdc.warehouseManage.entity.House;
import com.hdc.hdc.warehouseManage.entity.Position;

public interface WareHouseAndPositionServiceI {

	Map<String, Object> findFirstAll(int pageNum, Integer pageSize);
	
	Page<House> findHousePage(int pageNum, Integer pageSize);
	
	Page<Position> findPositionPage(int pageNum, Integer pageSize);

	@Transactional
	public void saveHouse(House house);

	Page<Position> findPositionPage(int i, Integer pageSize, String houseId);

	@Transactional
	public void savePosition(Position position);
	
	List<House> findAllHouses();
	
	List<Position> findAllPosition(String houseId);

	Map<String, Object> getHouseAndLocations();

}
